package com.demo.spring.aop;

import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

@Component
public class Student implements Person, EnvironmentAware {

	@Override
	public void say() {
		System.out.println("这是一个苦逼的程序员");
	}

	@Override
	public void play() {
		System.out.println("play");
	}

	@Override
	public void setEnvironment(Environment environment) {
		System.out.println("play");
	}

}
